const express = require("express");
const router = express.Router();
const db = require("../db/index");
router.post("/apps", function (req, res) {
  const { mobile, apps } = req.body;
  apps.forEach((app) => {
    db.mobile_apps
      .get("mobile_apps")
      .push({
        mobile,
        appName: app.name,
      })
      .write();
  });

  return res.json({
    code: 0,
    data: [],
  });
});
module.exports = router;
